package vn.gq.cd.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ChapterItem implements Parcelable {
	
	public static final String ITEM_PATH = "path";
	public static final String ITEM_NAME = "name";
	
	private String path, name;
	
	public ChapterItem() {
	}
	
	public ChapterItem(Parcel source) {
		path = source.readString();
		name = source.readString();
	}

	public String getName() {
		return name;
	}

	public void setName(String title) {
		this.name = title;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String url) {
		this.path = url;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(path);
		dest.writeString(name);
	}
	
	public static final Parcelable.Creator<ChapterItem> CREATOR = new Creator<ChapterItem>() {
		
		@Override
		public ChapterItem[] newArray(int size) {
			return new ChapterItem[size];
		}
		
		@Override
		public ChapterItem createFromParcel(Parcel source) {
			return new ChapterItem(source);
		}
	};
	
}
